package com.logica.tutorial.dto;

import java.io.Serializable;

import com.logica.tutorial.model.Address;

public class AddressDTO implements Serializable {
	
	private static final long serialVersionUID = -5770218329816693029L;
	private Long addressId;	
	private String street;	
	private String houseNr;
	private String city;
	private Integer zipCode;
		
	public AddressDTO(Address address) {
		this.street = address.getStreet();
		this.houseNr = address.getHouseNr();
		this.city = address.getCity();
		this.zipCode = address.getZipCode();
	}
	
	public Long getId() {
		return addressId;
	}

	public String getStreet() {
		return street;
	}

	public String getHouseNr() {
		return houseNr;
	}

	public String getCity() {
		return city;
	}

	public Integer getZipCode() {
		return zipCode;
	}
}